package p.ithorns.sample.refresh;

import lombok.Getter;
import lombok.Setter;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * AppConfig
 *
 * @author HtL
 * @date 2024/12/10 12:30
 * @since 1.0.0
 */
@Refreshable
@Getter
@Setter
@Component
@ConfigurationProperties(prefix = "app.user")
public class AppConfig {

    private String name;

    private DebugConfig debug;

    @Getter
    @Setter
    public static class DebugConfig {
        private boolean enabled;
    }

}